package mapred.task.example;

import java.io.IOException;
import java.util.Iterator;

import org.apache.hadoop.io.Writable;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reporter;

import mapred.task.extention.RawReducer;

public class RemoveDuplicateReducer extends RawReducer {

    @Override
    public void reduce(Writable key, Iterator<Writable> values,
            OutputCollector<Writable, Writable> output, Reporter reporter)
            throws IOException {
        output.collect(key, values.next());
    }

    @Override
    protected void setUp() {
    }

}
